home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-08-03 | 2.2 KB | 81 lines |
- MODEL= s
- # -v source level debugging
- # -y produce line number info
- # -N- (in production) turn off check for stack overflow
- # -k- (in production) turn off Standard stack frame
- # -a generate word alignment -- real win on 8086 and up
- # ...would take some work to get going, though.
- # -H use precompiled headers
- # -Qxxx Memory usage control
- # -p Pascal calls
- # -G Generate for speed
- # -Ox Optimizations
- # -O jump optimization
- # -O1 smallest code, = -O -Ob -Oe -k- -Z -Os
- # -O2 fastest code, = -O -Ob -Oe -k- -Z -Og
- # -Oa no pointer aliasing
- # -Ob remove dead code
- # -Oc common subexpressions in basic blocks only
- # -Oe global register allocation
- # -Og like c, whole functions (implies not c)
- # -Oi inline intrinsic functions (c++ only?)
- # -Ol loops into rep movsX's
- # -Om invariants
- # -Op copies of constants
- # -Os choose size
- # -Ot choose speed
- # -Ov loop induction and strength reduction
- OPTIMIZATION= -Ov -Ot -Op -Om -Ol -Og -Oe -Ob
- FLAGSBOTH= -m${MODEL} -w -a -d -G -O -Z -M -p -K -H=sym.dat -Qx
- CFLAGS= ${OPTIMIZATION} ${FLAGSBOTH} -N
- #CFLAGS= ${OPTIMIZATION} ${FLAGSBOTH} -N -v -y
- #CFLAGS= ${FLAGSBOTH} -N -v -y
-
- #all: c.exe get_area.exe makemenu.exe printh.exe find_diz.exe
- all: find_diz.exe
-
- find_diz.exe: find_diz.obj
- bcc ${CFLAGS} find_diz.obj
-
- maxmount.exe: maxmount.obj
- bcc ${CFLAGS} maxmount.obj
-
- printh.exe: printh.obj
- bcc ${CFLAGS} printh.obj
-
- c.exe: convert.obj
- bcc ${CFLAGS} -ec convert.obj
-
- gamedisc.exe: gamedisc.obj
- bcc ${CFLAGS} -ega gamedisc.obj
-
- get_area.exe: get_area.obj
- bcc ${CFLAGS} get_area.obj
-
- makemenu.exe: makemenu.obj
- bcc ${CFLAGS} makemenu.obj
-
- WHERE= m:\_bbs
-
- install: convert.exe get_area.exe
- copy convert.exe ${WHERE}
- copy get_area.exe ${WHERE}
- copy convert.exe ${WHERE}\c.exe
- copy convert.exe k:\bin_disc
-
- # just the source in the directory (the define 'CSRC')
- depend: ${CSRC}
- del makedep
- ! (cpp ${CFLAGS} $?; makedep $? qsort; del *.i)
- makedep -e
- del makedep
-
- # A universally useful target.
- clean:
- rm *.bak *.map *.obj make makedep autofile.lan *.i sym.dat logfile
- ds n
-
- # anything after this line will disappear.
- # DO NOT DELETE THIS LINE -- make depend uses it
- ###
-